package com.pbs.job.conf;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class JobFactory {

    private static Map<String,Object> jobMap = new HashMap<>();
    static{
        jobMap.put("SQL","com.pbs.job.custom.BizCustomScheduleTask");
        jobMap.put("WTF","com.pbs.job.business.wechat.RunTaskToWechatMsgJob");
    }
    public String getJobImp(String key){
        if(jobMap.containsKey(key)){
            return jobMap.get(key).toString();
        }
        return "";
    }
}
